﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Main.Master" AutoEventWireup="true"
    CodeBehind="CountryManage.aspx.cs" Inherits="ATW.MT.BaseManage.CountryManage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cp01" runat="server">
    <div class="main_hd">
        <h2 style="padding: 0px 20px;">
            国家管理
        </h2>
        <div class="title_tab" id="topTab">
            <ul>
                <li>国家名称：&nbsp;<input type="text" id="txtName" runat="server" />
                    &nbsp; &nbsp; &nbsp; 国家缩写：&nbsp;<input type="text" id="txtAbbr" runat="server" />
                    &nbsp; &nbsp; &nbsp; 国家区号：&nbsp;<input type="text" id="txtCode" runat="server" />
                    <asp:Button runat="server" ID="btnSearch" Text="搜索" class="MaintenanceButton" OnClick="btnSearch_Click"
                        Style="background: #d91913; outline: none; border: none; color: White; padding: 5px 20px;" />
                    &nbsp; &nbsp; &nbsp;
                    <input type="button" id="btnAddUser" style="background: #d91913; outline: none; border: none;
                        color: White; padding: 5px 20px;" class="queryButton" value="新增国家" />
                </li>
            </ul>
            <ul>
                <li>
                    <asp:Label runat="server" ID="lblError" ForeColor="Red" Font-Bold="true"></asp:Label></li>
            </ul>
        </div>
        <asp:Repeater ID="rpList" runat="server">
            <HeaderTemplate>
                <table width="95%" border="0" cellpadding="0" cellspacing="0" style="font-size: 14px"
                    class="queryResultTable">
                    <tr>
                        <th>
                            序号
                        </th>
                        <th>
                            国家名称
                        </th>
                        <th>
                            国家缩写
                        </th>
                        <th>
                            国家区号
                        </th>
                        <th>
                            语言
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("DCUID").ToString() %>
                    </td>
                    <td>
                        <a args='<%#Eval("DCUID").ToString() %>'>
                            <%#Eval("dcuDesc").ToString()%></a>
                    </td>
                    <td>
                        <%#Eval("CountryAbbr").ToString()%>
                    </td>
                    <td>
                        <%#Eval("CountryCode").ToString()%>
                    </td>
                    <td>
                        <%#Eval("LanName").ToString()%>
                    </td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbnDelete" OnClick="lbnDelete_Click" CommandArgument='<%#Eval("DCUID").ToString() %>'>
                            删除
                        </asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <cc1:AspNetPager ID="AspNetPager1" Style="float: right" runat="server" PageSize="10"
            AlwaysShow="true" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页"
            PagingButtonSpacing="0" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
            OnPageChanged="AspNetPager1_pageChanged">
        </cc1:AspNetPager>
    </div>
    <div id="divAdd" style="display: none;">
        <div class="tc_header">
            <h2>
                编辑国家</h2>
            <a id="hideAdd">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <table cellpadding="0" cellspacing="5" style="margin: 5px">
                    <tr>
                        <th>
                            国家名称：
                        </th>
                        <td>
                            <input type="text" runat="server" id="textCountry" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            国家缩写：
                        </th>
                        <td>
                            <input type="text" runat="server" id="textAbbr" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            国家区号：
                        </th>
                        <td>
                            <input type="text" runat="server" id="textCode" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            国家语言：
                        </th>
                        <td>
                            <asp:DropDownList runat="server" ID="ddlLan" DataTextField="LanName" DataValueField="LanId">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button runat="server" ID="Button1" Text="确认" class="MaintenanceButton" OnClick="btnAdd_Click"
                                Style="background: #d91913; outline: none; border: none; color: White; padding: 5px 20px;" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div id="divMsg" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
            <a id="hideMsg">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="min-width: 200px; min-height: 80px">
                <p id="msgContent">
                </p>
            </div>
        </div>
    </div>
    <script src="../Scripts/CountryManage.js" type="text/javascript"></script>
</asp:Content>
